package org.example.apply.feign;

import org.example.apply.entity.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("service-user")
public interface UserFeign {

    @GetMapping("/user/getUser")
    public UserDto getUser(@RequestParam Integer id);

    @GetMapping("/user/list")
    public List<UserDto> list();
}
